<template>
	<view class="wf-box">
		<view class="head" :style="{ paddingTop: navBarHeight }">
			<view class="head-np">
				<view class="back" @click="back()">
					<image src="../../static/img/chat-09.png"></image>
				</view>
				<view class="title">账单详情</view>
				<view></view>
			</view>
		</view>
		<view class="main" :style="{ paddingTop: navBarHeight }">
			<image src="@/static/img/token_2.png" mode="widthFix"></image>
			<view class="money">+100KT</view>
			<view class="hint">充值成功</view>

			<view class="info">
				<view class="item">
					<view>订单类型</view>
					<view>充值</view>
				</view>
				<view class="item">
					<view>时间</view>
					<view>2024-03-25 14:30</view>
				</view>
				<view class="item">
					<view>订单号</view>
					<view>1772149024714952704</view>
					<image src="@/static/img/copy-icon.png" mode="widthFix"></image>
				</view>
				<view class="item">
					<view>交易哈希</view>
					<view>0x4102...5ef1</view>
					<image src="@/static/img/copy-icon.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import navBarMixin from '@/mixin/navBarMixin.js'
	export default {
		data() {
			return {}
		},
		mixins: [navBarMixin],
		onLoad(option) {},
		methods: {
			back() {
				uni.navigateBack()
			}
		},
	}
</script>

<style lang="scss" scoped>
	.wf-box {
		overflow: hidden;

		.back {
			image {
				width: 20rpx;
				height: 37rpx;
			}
		}

		.head {
			position: fixed;
			z-index: 333;
			width: 100%;
			background: #fff;

			.head-np {
				display: flex;
				justify-content: space-between;
				align-items: center;
				width: 100%;
				height: 96rpx;
				padding: 0 30rpx;
				box-sizing: border-box;

				.title {
					font-size: 36rpx;
					font-weight: bold;
				}
			}
		}

		.main {
			margin-top: 126rpx;
			// margin-top: 246rpx;
			// margin: 246rpx 30rpx 60rpx;
			padding: 0 30rpx;
			text-align: center;

			>image {
				width: 84rpx;
				margin: 50rpx auto 20rpx;
			}

			.money {
				font-weight: 500;
				font-size: 34rpx;
				line-height: 42rpx;
			}

			.hint {
				font-size: 26rpx;
				color: #3F93FF;
				line-height: 42rpx;
				margin: 20rpx auto 46rpx;
			}

			.info {
				background-color: white;
				border-radius: 10rpx;
				padding: 0 30rpx 100rpx;

				.item {
					height: 110rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					border-bottom: 1rpx solid #EEEEEE;
					view {
						font-size: 30rpx;
						&:nth-of-type(1) {
							color: #999999;
						}
						&:nth-of-type(2) {
							flex: 1;
							text-align: right;
						}
					}
					image {
						width: 40rpx;
						margin-left: 10rpx;
					}
				}
			}
		}
	}
</style>